<SCRIPT type="text/javascript">
	/*
	$(document).ready(function(){
		$('.checkrole').on("click",function(){
			if($(this).children().first()){
				if($(this).children().first().prop("checked")==true){
					  $(this).children().first().prop("checked",false) ;
				}else{
					 $(this).children().first().prop("checked",true) ;
				}
			}
		})
	});
	*/
</SCRIPT>
<table class="table_style_1 table-bordered"  style="width:100%;height:30%" >
	<tr>
		<td></td>
		<td>读取<i class="ico_1"></i></td>
		<td>编辑<i class="ico_2"></i></td>
		<td>策略<i class="ico_3"></i></td>
		<td>权限<i class="ico_3"></i></td>
		<td>设计器<i class="ico_4"></i></td>
		<td>执行<i class="ico_5"></i></td>
		<td>创建报表<i class="ico_9"  style="margin-top:-5px;width:20px;height:19px;'"></i></td>
		<td>导入<i class="ico_7"></i></td>
		<td>任务<i class="ico_8"></i></td>
		<td style="border-bottom:solid 1px #BABABA;">&nbsp;</td>
	</tr>
		<#if authlist??>
		<#list authlist as auth>
			<tr>
			<td style="padding:2px;padding-left:20px;height:16px;border-bottom:0px;" class="checkrole"><i class="<#if auth.ownertype=='3'>icons_tablelist_user<#elseif auth.ownertype=='2'>icons_tablelist_organ<#elseif auth.ownertype=='1'>icons_tablelist_role</#if>"></i>${auth.ownername!''}</td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_1_${auth.ownertype}" id="${auth.ownerid!''}1chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_2_${auth.ownertype}" id="${auth.ownerid!''}2chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_3_${auth.ownertype}" id="${auth.ownerid!''}3chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_0_${auth.ownertype}" id="${auth.ownerid!''}0chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_4_${auth.ownertype}" id="${auth.ownerid!''}4chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_5_${auth.ownertype}" id="${auth.ownerid!''}5chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_7_${auth.ownertype}" id="${auth.ownerid!''}7chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_9_${auth.ownertype}" id="${auth.ownerid!''}9chk"></td>
			<td style="padding:2px;height:16px;border-bottom:0px;" class="checkrole"><input type="checkbox" name="authInfo" value="${auth.ownerid!''}_8_${auth.ownertype}" id="${auth.ownerid!''}8chk"></td>
			<td style="padding:6px;height:16px;border-bottom:0px;" title="移除${auth.ownername!''}" class="checkrole">
				<a href="javascript:void(0)" onclick="loadURL('/${orgi}/user/report/${tabid}/rmauthorize.html?reportid=${dicid}&dicid=${dicid!''}&id=${auth.id!''}' , '#perdiv')" style="margin-left:5px;"><img src="/assets/images/deletered.png" height="8" width="8"></a>
			</td>
			<#if auth??>
				<script>
					var authList = "${auth.authtype!''}";
					var arr = authList.split(",");
					for(var i=0;i<arr.length;i++){
						$("#${auth.ownerid!''}"+arr[i]+"chk").prop("checked",true);
					}
				</script>
			</#if>
		</tr>
		</#list>
	</#if>
</table>